package com.aaa.hospital.nurse.controller;

import com.aaa.hospital.nurse.pojo.Sickroomarea;
import com.aaa.hospital.nurse.service.SickroomareaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class SickroomareaController {
    @Autowired
    private SickroomareaService sickroomareaService;
    @RequestMapping("/nurse_test1")
    @ResponseBody
    public List<Sickroomarea> test(){
        List<Sickroomarea> list=sickroomareaService.selectAll();
        return list;
    }

   ///lgq
   @RequestMapping("/sickroom/queryById")
   @ResponseBody
   public Sickroomarea queryById(Integer ksid){
       Sickroomarea sickroomarea = sickroomareaService.queryById(ksid);
       return sickroomarea;
   }




}
